// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/store'
import Vant from 'vant';
import 'vant/lib/index.css';
import "babel-polyfill";
import global from './components/common/global'
Vue.prototype.global = global
Vue.use(Vant);
Vue.config.productionTip = false
//axios
import axios from './fetch';
Vue.config.productionTip = false
Vue.prototype.$http = axios;
Vue.prototype.$basePath = process.env.API_ROOT;
/* eslint-disable no-new */
import BaiduMap from 'vue-baidu-map'

Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'ZjWLlaaOquvNohbogQHo5rGasrkS5CBs'
})
/**调用全局变量 */

new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})